import { RESOURCES } from '$lib/config.js';

export const load = async ({fetch}) => {
    let resources = {};

    for (let resource of RESOURCES) {
        const response = await fetch(`/api/resources?type=${resource}`);
        resources[resource] = await response.json();
    }
    
    return resources;
}